﻿<%@ Page Language="c#" CodeBehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Subscription.SubscriptionListPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>Listview Page</title>
  <script language="javascript" type="text/javascript">
  //<!--
  function selectAll() {
    var len = document.Subscription.elements.length;
    var i;
    for (i = 0; i < len; i++) {
      if (document.Subscription.elements[i].type == "checkbox") {
        document.Subscription.elements[i].checked = true;
      }
    }
  }

  function unSelectAll() {
    var len = document.Subscription.elements.length;
    var i;
    for (i = 0; i < len; i++) {
      if (document.Subscription.elements[i].type == "checkbox") {
        document.Subscription.elements[i].checked = false;
      }
    }
  }
  //-->
  </script>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="Subscription" method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/help_page.gif" Title="我的关注">
      <input type="button" onclick="selectAll()" value="全部选择" class="redButtonCss" />
      <input type="button" onclick="unSelectAll()" value="全部取消" class="redButtonCss" />
      <asp:Button ID="btnDeleteSubscription" runat="server" Text="删除订阅" CssClass="redButtonCss" />
    </uds:PageTitle>
    <div>
      <table cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td class="unSelectedTab"><a href="../Task/Listview.aspx" class="Newbutton">我的参与</a></td>
          <td class="selectedTab"><a href="../Subscription/Listview.aspx" class="Newbutton">我的关注</a></td>
        </tr>
      </table>
    </div>
    <uds:UDSDataGrid ID="dgMySubsciption" runat="server" OnPageIndexChanged="DataGrid_PageChanged" DataKeyField="ClassID">
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="5%"></HeaderStyle>
          <HeaderTemplate>
            ◎
          </HeaderTemplate>
          <ItemTemplate>
            <asp:CheckBox ID="ClassID" runat="server" />
          </ItemTemplate>
          <EditItemTemplate>
          </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn Text="项目名称" Target="_self" DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?Subscription=1&amp;ClassID={0}" DataTextField="ClassName" HeaderText="项目名称">
          <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Left"></ItemStyle>
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="FILECOUNT" HeaderText="已归档">
          <HeaderStyle Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Status" HeaderText="状态">
          <HeaderStyle Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Scale" HeaderText="所占比例">
          <HeaderStyle Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="StartDate" HeaderText="起始日期">
          <HeaderStyle Width="20%"></HeaderStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="EndDate" HeaderText="截止日期">
          <HeaderStyle Width="20%"></HeaderStyle>
        </asp:BoundColumn>
      </Columns>
    </uds:UDSDataGrid>
  </form>
</body>
</html>
